<template>
    <div>
        <mesg v-for="(elem,i) of data" :key="i" :imgUrl="elem.img" :title="elem.title" :subtitle="elem.subtitle" :time="elem.time"></mesg>
    </div>
</template>

<script>
import Mesg from './Mesg.vue'
import list from "../json/messagelist.json"
export default {
    data(){
        return {
            data:list.data
        }
    },
    components:{
        "mesg":Mesg
    },
    methods:{
        con(){
            console.log(this.data);
        }
    }
}
</script>

<style>
</style>